package com.gopay.remote.solution.vo;

/**
 * 
 * @TransDtlInfo.java
 * @author boai
 * @2017-7-31 下午6:52:18 www.gopay.com.cn Inc.All rights reserved.
 */
public class CopyTransDtlInfo extends SolutionDtlInfo {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private String gopayIntTxnCd = "";
    private String gopayIntTxnName = "";
    private boolean isAvaliable;

    public String getGopayIntTxnCd() {
        if (null == gopayIntTxnCd) {
            return "";
        }
        return gopayIntTxnCd;
    }

    public void setGopayIntTxnCd(String gopayIntTxnCd) {
        this.gopayIntTxnCd = gopayIntTxnCd;
    }

    public String getGopayIntTxnName() {
        if (null == gopayIntTxnName) {
            return "";
        }
        return gopayIntTxnName;
    }

    public void setGopayIntTxnName(String gopayIntTxnName) {
        this.gopayIntTxnName = gopayIntTxnName;
    }

    public boolean isAvaliable() {
        return isAvaliable;
    }

    public void setAvaliable(boolean isAvaliable) {
        this.isAvaliable = isAvaliable;
    }

    @Override
    public int hashCode() {
        return 10000;
    }

    @Override
    public boolean equals(Object obj) {
        /*修复潜在问题 added by wangdong at 2018-04-08 start*/
        if (obj == null){
            return false;
        }
        /*修复潜在问题 added by wangdong at 2018-04-08 end*/
        CopyTransDtlInfo t = (CopyTransDtlInfo) obj;
        if(this.getGopayIntTxnCd().equals(t.getGopayIntTxnCd())){
            return true;
        }
        return super.equals(obj);
    }
}